package club.gskj.gulimall.ware.service;

import club.gskj.gulimall.ware.vo.PurchaseDoneVo;
import club.gskj.gulimall.ware.vo.PurchaseMergeVo;
import com.baomidou.mybatisplus.extension.service.IService;
import club.gskj.common.utils.PageUtils;
import club.gskj.gulimall.ware.entity.PurchaseEntity;

import java.util.List;
import java.util.Map;

/**
 * 采购信息
 *
 * @author 康纳-connor
 * @email 2417039231@gmail.com
 * @date 2021-02-07 10:08:31
 */
public interface PurchaseService extends IService<PurchaseEntity> {

    PageUtils queryPage(Map<String, Object> params);

    PageUtils queryPageUnreceive(Map<String, Object> params);

    void mergePurchase(PurchaseMergeVo purchaseMergeVo);

    void receivedPurchase(List<Long> ids);

    /**
     * 改变采购项、采购单的状态
     *
     * @param purchaseDoneVo
     */
    void donePurchase(PurchaseDoneVo purchaseDoneVo);

}

